﻿using System.Drawing;

namespace Angle.Krill
{
    public class WallpaperInfo
    {
        public string Key { get; set; }
        public string Title { get; set; }
        public string Url { get; set; }
        public string ImagePath { get; set; }

        public Image Image
        {
            get
            {
                if (this.ImagePath == null)
                {
                    return null;
                }

                return ImageHelper.FromFile(this.ImagePath);
            }
        }
    }
}
